<?php

namespace App\Services;



use App\Models\Task;
use Illuminate\Support\Facades\Auth;

class HomeService
{
    protected $task;

    public function __construct(Task $task)
    {
        $this->task =$task;
    }

    //分配给我的任务
    public function myTask($select){
        $user_id = Auth::id();
        $res = $this->task->search($select,$user_id);
        return $res;
    }

    //任务完成度

}